package com.gk.service;

import com.gk.entity.CommonResult;
import com.gk.service.fallback.FeignServiceFallback;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.stereotype.Service;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestParam;

@Service
@FeignClient(value = "gateway-gateway",fallback = FeignServiceFallback.class)
public interface FeignService{
    @PostMapping("login")
    public CommonResult login(@RequestParam("username") String username, @RequestParam("password") String password);
}

